ihelpuoo.namespace("ihelpuoo.widget.list");

ihelpuoo.widget.list.DropListItem = function(ele)
{
	this.value = null;
	this.text = null;
	this.selected = false;
	if(ele)
		this.valueOf(ele);
}

ihelpuoo.widget.list.DropListItem.prototype
=
{

	valueOf: function(ele)
	{
		this.value = ihelpuoo.xml.getAttribute(ele,"value");
		this.text = ihelpuoo.xml.getText(ele,"text");
		this.selected = ihelpuoo.xml.getAttributeAsBoolean(ele,"selected");
	}
	
	,
	dump: function()
	{
		return this.value + "["+this.text+"] ("+this.selected+")";
	}
	
}